package io.framework.modules.air.service;

import io.framework.common.service.CrudService;
import io.framework.modules.air.dto.AirDayNumberDTO;
import io.framework.modules.air.entity.AirDayNumberEntity;

import java.util.List;
import java.util.Map;

/**
 * 优良天数统计
 *
 * @author Gujq email
 * @since 1.0.0 2020-05-21
 */
public interface AirDayNumberService extends CrudService<AirDayNumberEntity, AirDayNumberDTO> {

    /**
     * 根据时间查询优良天数统计
     * @param params
     * @return
     */
    List<Map<String,Object>> youLiangNumber(Map<String, Object> params);

    /**
     * 全市空气优良天数月度情况
     * @param params
     * @return
     */
    List<Map<String,Object>> youLiangNumberMonth(Map<String, Object> params);

    /**
     *  验证数据上传  防止重复上传
     * @param type
     * @param month
     * @return
     */
    Boolean checkData(Integer type, String month);
}